feat(qdrant): Add filtering system for Qdrant vector searches#22
Merged
Conversation
4thel00z
reviewed
Dec 8, 2025
sounak98
reviewed
Dec 8, 2025
…JSON unmarshalling for time and numeric range conditions
9a5e89b to
df523df
Compare
sounak98
approved these changes
Dec 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add type-safe filtering system
Summary
Adds a comprehensive, type-safe filtering system for Qdrant vector searches with support for multiple condition types and logical clauses.
Filter Conditions
TextConditionWHERE city = 'London'BoolConditionWHERE active = trueIntConditionWHERE priority = 1TextAnyConditionWHERE city IN ('London', 'Berlin')IntAnyConditionWHERE priority IN (1, 2, 3)TextExceptConditionWHERE city NOT IN ('Paris')IntExceptConditionWHERE priority NOT IN (0)TimeRangeConditionWHERE created_at >= '2024-01-01'NumericRangeConditionWHERE price >= 100 AND price <= 500IsNullConditionWHERE deleted_at IS NULLIsEmptyConditionWHERE tags IS EMPTYLogical Clauses
MustmustShouldshouldMustNotmustNotField Type Separation
InternalFieldsearch_store_idUserFieldcustom.prefixcustom.document_idJSON Serialization
KeyfieldValue(match)equalToValues(any)anyOfValues(except)noneOfTimeRange.GtafterTimeRange.GteatOrAfterTimeRange.LtbeforeTimeRange.LteatOrBeforeNumericRange.GtgreaterThanNumericRange.GtegreaterThanOrEqualToNumericRange.LtlessThanNumericRange.LtelessThanOrEqualToUsage
JSON Output Example
Payload Helper